Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: grpc guide #99

Merged
merged 15 commits into from
Feb 27, 2024
Merged

feat: grpc guide #99

merged 15 commits into from
Feb 27, 2024

Conversation

meskill
Copy link
Contributor

@meskill meskill commented Jan 26, 2024

@tusharmath
Copy link
Contributor

@meskill can you update this with the new link operator.

To specify protobuf file to read types from, use `@link` operator with type `Protobuf` on schema. `id` is important part of the definition that will be used by `@grpc` operator later

```graphql
schema @link(id: "news", src: "./news.proto", type: Protobuf)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
schema @link(id: "news", src: "./news.proto", type: Protobuf)
schema @link(id: "news-id", src: "./news.proto", type: Protobuf)

we could change it to differentiate between the link id and the package name when setting the @grpc directive

@tusharmath tusharmath merged commit 01ef946 into develop Feb 27, 2024
3 checks passed
@meskill meskill deleted the grpc-guide branch February 28, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write a guide to develop GraphQL endpoints on top of GRPC using Tailcall
3 participants